package com.learn.factory.method.factory;

import com.learn.factory.method.Factory;
import com.learn.factory.method.Weapon;
import com.learn.factory.method.WeaponType;
import com.learn.factory.method.weapon.BeijingWeapon;
import lombok.extern.slf4j.Slf4j;

/**
 * <p>项目名称: design-pattern </p>
 *
 * <p>文件名称: WuhanFactory </p>
 *
 * Factory of Weapon
 *
 */
@Slf4j
public class BeijingFactory implements Factory {
    @Override
    public Weapon makeWeapon(WeaponType weaponType) {
        log.info("北京工厂生产{}", weaponType);
        return new BeijingWeapon(weaponType);
    }
}
